package com.huang.eduservice.mapper;

import com.huang.canal.entity.ESbean;
import com.huang.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huang.eduservice.entity.vo.CoursePublishVo;
import com.huang.eduservice.entity.vo.CourseWebVo;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2021-03-21
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    CoursePublishVo getPublishVo(String id);

    CourseWebVo getFrontCourseInfo(String courseId);

    List<ESbean> getTotal();

    ESbean getEsbean(String id);

    List<ESbean> getEsbeanByteacherId(String id);
}
